package com.service;


import com.dao.DepDAO;
import com.pojo.Dep;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@SuppressWarnings("ALL")
@Service
public class DepService {

    @Autowired
    private DepDAO depDAO;

    /**
     * 新增部门
     * @param dep
     * @return
     */
    public int addDep(Dep dep)
    {
        //新增部门
        int n = depDAO.insert(dep);
        int x = 1/0;
        return n;
    }


}
